<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<!-- Bootstrap CSS -->
<link rel="stylesheet" href="../view/front/style/bootstrap.min.css">

<!-- Loding font -->
<!--<link href="https://fonts.googleapis.com/css?family=Montserrat:300,700" rel="stylesheet">-->

<!-- Custom Styles -->
<link rel="stylesheet" type="text/css" href="../view/front/style/styles.css">

<title>Home</title>
<script type="text/scprict">  
	 console.log(seesion.getAttribute('username'));
	 console.log(window.seesion.getAttribute('username'));
</script>
</head>
<body>

<!-- Backgrounds -->

<div id="login-bg" class="container-fluid">

  <div class="bg-img">
 
  </div>
  <div style="float:right; background-color: #CAF0D3; width: 50%;height: 100%">   
    <div style="float:right;"> 
  	  <?php if(empty($name)){ ?>
  	   <h5>
     	  欢迎光临哈哈！&nbsp;&nbsp;&nbsp;&nbsp;
     	   <a href='./denlu.php'> 请登录! </a>
     	   <a href='./zhuce.php'> 请注册! </a>
     </h5>
     <?php }else{ ?>
     <h5>
        您好！  <?php echo $name; ?> 欢迎您回来！
        <a href='#'> 用户中心 </a>
     	<a href='logout.php'> 退出 </a>
     </h5>
     <?php } ?>
     </div>
  </div>

</div>

<div class="container" id="login">
	<div class="row justify-content-center">
	<div class="col-lg-8">
	   
	</div>
	</div>
</div>


</body>
</html>